package com.guodi.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @描述：指标监测值表
 * @作者: 彭辉
 * @日期: 2020-06-05
 */
@Getter
@Setter
@EqualsAndHashCode
@ApiModel(value="指标监测值表")
public class IdtMonitorValue implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private String id;

    @NotBlank(message = "年份不能为空")
    @ApiModelProperty(value = "年份")
    private Integer year;

    @NotBlank(message = "行政区划编码不能为空")
    @ApiModelProperty(value = "行政区划编码")
    private String divisionCode;

    @NotBlank(message = "监测值不能为空")
    @ApiModelProperty(value = "监测值")
    private String monitorValue;

    /*@ApiModelProperty(value = "采集时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date gatherTime;*/

    @NotBlank(message = "监测时间不能为空")
    @ApiModelProperty(value = "监测时间")
    private String monitorTime;

    @ApiModelProperty(value = "预警状态")
    private String warnStatus;

    @ApiModelProperty(value = "指标说明")
    private String explain;

    @NotBlank(message = "指标id不能为空")
    @ApiModelProperty(value = "指标id")
    private String indicatorsId;

    @ApiModelProperty(value = "机构id")
    private String orgId;

    @ApiModelProperty(value = "创建人",hidden = true)
    private String creator;

    @ApiModelProperty(value = "创建时间",hidden = true)
    private Date createTime;

    @ApiModelProperty(value = "修改人",hidden = true)
    private String modifier;

    @ApiModelProperty(value = "修改时间",hidden = true)
    private Date modifyTime;

    @ApiModelProperty(value = "指标名称",hidden = true)
    @TableField(exist = false)
    private String idtName;

    @ApiModelProperty(value = "指标编号",hidden = true)
    @TableField(exist = false)
    private String idtCode;

    @ApiModelProperty(value = "指标单位",hidden = true)
    @TableField(exist = false)
    private String idtUnit;

    @TableField(exist = false)
    @ApiModelProperty(value = "行政区划名称", hidden = true)
    private String divisionName;

    @TableField(exist = false)
    @ApiModelProperty(value = "更新周期", hidden = true)
    private String updateCycle;

    @ApiModelProperty(value = "责任单位",hidden = true)
    @TableField(exist = false)
    private String idtDutyCompany;

    @TableField(exist = false)
    @ApiModelProperty(value = "责任处室", hidden = true)
    private String idtDutyDepartment;

    @ApiModelProperty(value = "原数据",hidden = true)
    @TableField(exist = false)
    private String oldValue;

    @ApiModelProperty(value = "评估结果状态")
    private String estimateStatus;

}
